babl: Decrease scope of create_name() buffer
authorMartin Nordholts <martinn@src.gnome.org>
Mon, 6 Sep 2010 06:35:03 +0000 (08:35 +0200)
committerMartin Nordholts <martinn@src.gnome.org>
Mon, 6 Sep 2010 06:35:03 +0000 (08:35 +0200)
babl/babl-fish-reference.c

index 5fbc8378f3e052199bf0acdb9b167b3354109c7b..fa47ea920cf6cf1c5705c74507068b5d13c9300a 100644 (file)
@@ -30,12 +30,13 @@ assert_conversion_find (void *source,
   return ret;
 }
 
-static char buf[1024];
 static char *
 create_name (const Babl *source,
              const Babl *destination,
              int   is_reference)
 {
+  static char buf[1024];
+
   /* fish names are intentionally kept short */
   snprintf (buf, 1024, "%s %p %p",
             is_reference ? "ref "